# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1292054829.491087
_template_filename=u'/Users/joeldunham/old/onlinelinguisticdatabase/templates/base/pageEditFields.html'
_template_uri=u'/base/pageEditFields.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['pageEditField']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    # SOURCE LINE 1
    ns = runtime.Namespace(u'helper', context._clean_inheritance_tokens(), templateuri=u'/base/helper.html', callables=None, calling_uri=_template_uri, module=None)
    context.namespaces[(__name__, u'helper')] = ns

def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, u'helper')._populate(_import_ns, [u'entityLinkingHelp', u'embeddingFileHelp', u'embeddingFormHelp', u'reStructuredTextHelp'])
        __M_writer = context.writer()
        __M_writer(u'\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_pageEditField(context,option=None):
    context.caller_stack._push_frame()
    try:
        _import_ns = {}
        _mako_get_namespace(context, u'helper')._populate(_import_ns, [u'entityLinkingHelp', u'embeddingFileHelp', u'embeddingFormHelp', u'reStructuredTextHelp'])
        embeddingFileHelp = _import_ns.get('embeddingFileHelp', context.get('embeddingFileHelp', UNDEFINED))
        entityLinkingHelp = _import_ns.get('entityLinkingHelp', context.get('entityLinkingHelp', UNDEFINED))
        embeddingFormHelp = _import_ns.get('embeddingFormHelp', context.get('embeddingFormHelp', UNDEFINED))
        reStructuredTextHelp = _import_ns.get('reStructuredTextHelp', context.get('reStructuredTextHelp', UNDEFINED))
        __M_writer = context.writer()
        # SOURCE LINE 3
        __M_writer(u'\n\n<fieldset>\n <ol>\n  <li>\n   <label for="name">Name</label>\n')
        # SOURCE LINE 9
        if option in ['home', 'help']:
            # SOURCE LINE 10
            __M_writer(u'   <input id="name" maxlength="255" name="name" tabindex="1" type="text" readonly />\n')
            # SOURCE LINE 11
        else:
            # SOURCE LINE 12
            __M_writer(u'   <input id="name" maxlength="255" name="name" tabindex="1" type="text" />\n')
            pass
        # SOURCE LINE 14
        __M_writer(u'  </li>\n  \n  <li>\n   <label for="heading">Heading</label>\n   <input id="heading" maxlength="255" name="heading" tabindex="2" type="text" />\n  </li>\n\n  <li>\n   <label for="content">Content</label>\n   <textarea id="content" name="content" rows="30" cols="70" tabindex="4" class="monospace"></textarea>\n   <p class=\'fullyjustified\'>To give formatting and structure to the content,\n   use the reStructuredText ')
        # SOURCE LINE 25
        __M_writer(escape(reStructuredTextHelp()))
        __M_writer(u' markup language.\n   Create HTML links to OLD entities ')
        # SOURCE LINE 26
        __M_writer(escape(entityLinkingHelp()))
        __M_writer(u" using the syntax\n   'form(a)', 'collection(b)', etc., where 'a' and 'b' are IDs.\n   Embed representations of OLD Files ")
        # SOURCE LINE 28
        __M_writer(escape(embeddingFileHelp()))
        __M_writer(u' or Forms\n   ')
        # SOURCE LINE 29
        __M_writer(escape(embeddingFormHelp()))
        __M_writer(u" with 'file[x]' and 'form[y]' respectively</p>\n  </li>\n\n </ol>\n\n</fieldset>\n\n")
        return ''
    finally:
        context.caller_stack._pop_frame()


